﻿using System;
using Loki.Data;
using Luna.Data.Common;

namespace Luna.Data.Test
{
    public abstract class EntityWithReferenceTest<TService, TEntity> : EntityTest<TService, TEntity, IReferenceData>
        where TService : class
        where TEntity : class, IDataEntity<Guid>, IReferenceData
    {
        protected EntityWithReferenceTest(string contextName)
            : base(contextName)
        {
        }

        public override Func<TEntity, IReferenceData> KeyGetter
        {
            get { return x => x; }
        }
    }
}